package com.gxa.controller.activities;

import com.gxa.common.R.ResponseData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/log")
public class Test {

    @Autowired
    private com.gxa.service.activities.Test test;

    @RequestMapping(value = "/ccz",method = RequestMethod.GET)
    @ResponseBody
    public ResponseData login(Integer empno){
//        ResponseData responseData = new ResponseData();
//        responseData.setCode(200);
//        responseData.setMsg("测试成功");
        ResponseData responseData = test.login(empno);
        return responseData;
    }
}
